/*******************************************************************************
 * Copyright (c) 2011 Olexandr V. Shaposhnikov.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *    Olexandr V. Shaposhnikov - initial API and implementation and/or initial documentation
 *******************************************************************************/
package com.funkyroach.use.core.ast.expr;

import org.eclipse.dltk.ast.expressions.Expression;

public class USComplexExpression extends USExpression {

	private Expression subExpression;

	public Expression getSubExpression() {
		return subExpression;
	}

	public void setSubExpression(Expression subExpression) {
		this.subExpression = subExpression;
	}

	@Override
	public String toString() {
		StringBuffer sb = new StringBuffer();
		sb.append("( ");
		if (subExpression != null)
			sb.append(subExpression);
		sb.append(")");
		return sb.toString();
	}

}
